package com.ruoyi.market.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excel.ColumnType;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 文章对象 article
 *
 * @author ruoyi
 */
public class Article extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 文章ID
     */
    @Excel(name = "文章序号", cellType = ColumnType.NUMERIC, prompt = "文章编号")
    private Long articleId;

    /** 店铺ID */
    private String shopId;

    /**
     * 状态（0正常 1停用）
     */
    @Excel(name = "帐号状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /**
     * 排序
     */
    @Excel(name = "排序", cellType = ColumnType.NUMERIC)
    private Long articleSort;

    /**
     * 标题
     */
    private String articleTitle;

    /**
     * 内容
     */
    private String articleContent;

    /**
     * 文章类型 用户协议-customer_register 隐私政策-privacy 店员入驻协议-employee_join 店员须知-employee_guide 用户须知-customer_guide
     */
    private String articleType;

    /** 所属店铺信息   */
    private ConfigBase shopInfo;

    public Article() {

    }

    public Article(Long articleId) {
        this.articleId = articleId;
    }

    public Long getArticleId() {
        return articleId;
    }

    public String getShopId(){ return shopId; }

    public void setShopId(String shopId){ this.shopId = shopId; }

    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getArticleSort() {
        return articleSort;
    }

    public void setArticleSort(Long articleSort) {
        this.articleSort = articleSort;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }

    public String getArticleContent() {
        return articleContent;
    }

    public void setArticleContent(String articleContent) {
        this.articleContent = articleContent;
    }
    public String getArticleType() {
        return articleType;
    }

    public void setArticleType(String articleType) {
        this.articleType = articleType;
    }

    public ConfigBase getShopInfo()
    {
        return shopInfo;
    }

    public void setShopInfo(ConfigBase shopInfo)
    {
        this.shopInfo = shopInfo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("articleId", getArticleId())
                .append("shopId", getShopId())
                .append("articleSort", getArticleSort())
                .append("articleTitle", getArticleTitle())
                .append("articleContent", getArticleContent())
                .append("articleType", getArticleType())
                .append("shopInfo", getShopInfo())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("status", getStatus())
                .toString();
    }
}
